<?php  
        session_start();
        require_once '../host_config.php';
        require_once '../Model/mysql.php';
        if (!isset($_SESSION['shopid']) && isset($_SESSION['flag'])) {
            echo "<script language='javascript'>";
            echo "alert('You have no permission to read this page!');";
            echo "history.back();";
            echo "</script>";
            header("location:../login.php");
       	}else if($_SESSION['flag'] == "2") {
       		header("location:../login.php");
		}else if($_SESSION['shopid'] != $_GET['id']) {
            echo '123';
            die();
        	header("location:../used/select.php?id=".$_SESSION['shopid']);
        }else { 
        	$shopid = $_SESSION['shopid'];
        }
?>
<!DOCTYPE html>
<html>

<head>
<meta name="viewport" content="width=device-width; text/html; charset=utf-8" http-equiv="Content-Type">
<title>感謝您的填寫</title>
<link href="../mobile.css" rel="stylesheet" type="text/css">
</head>

<body>

<div id="banner">
	感謝您的填寫</div>

<div id="content">
	感謝您填寫此資料<br />
        請點選<a href="../used/select.php?id=<?php echo $shopid;?>">此連結</a>查看資訊
</div>


</body>

</html>